package com.paas.form.core.element.constants;

public class SearchConstant {
    public static final String VM_SEARCH_BUTTON_RESET = "";
    public static final String VM_SEARCH_FIELD_BODY = "";

    public static final String VM_SEARCH_FORM_START = "\n                    <!-- 表单部分 -->\n" +
            "                    <el-form class=\"mr40 ml20\" :model=\"$formObject\" label-width=\"124px\" v-if=\"isSearch\" >\n" +
            "                        <el-row  class=\"flex-wrap pr20\" type=\"flex\" :gutter=\"20\">";


    public static final String VM_SEARCH_FORM_END = "\n                        </el-row>\n" +
            "                    </el-form>";


    public static final String VM_SEARCH_FORM_COLStart = "" +
            "                            <el-col :span=\"$colSpan\">\n" +
            "                                <el-form-item prop=\"${field.vModel}\" label=\"${field.config.label}\">";

    public static final String VM_SEARCH_FORM_COLEND = "\n                                </el-form-item>\n" +
            "                            </el-col>";


    public static final String VM_SEARCH_JS_DATA = "                ${formObject}: {\n" +
            "#foreach($keyword in ${searchList})\n" +
            "#set($serchFiled=${keyword.vModel})\n" +
            "#set($maohao=':')\n" +
//            "#if($keyword.config.defaultValue)                    ${serchFiled}${maohao} ${keyword.config.defaultValue},\n" +
//            "#else                    ${serchFiled}${maohao}undefined,\n#end" +
            "                   ${serchFiled}${maohao}undefined,\n" +
            "#end\n" +
            "               },";



    public static final String VM_SEARCH_TITLE_HEAD = "<div class=\"com-title display-flex mb20\">\n" +
            "                        <div class=\"com-title_lable\"></div>\n" +
            "                        <div class=\"title-text flex-1\">$title</div>\n";

    public static final String VM_SEARCH_TITLE_END = "</div>";


    public static final String VM_SEARCH_TITLE_DEFAULT_BUTTON = "" +
            "                        <el-button @click=\"add()\"> 新增</el-button>\n" +
            "                        <el-button @click=\"clearSearchAll()\"> 刷新</el-button>\n" +
            "                        <el-button class=\"btn-blue\" @click=\"getDataList()\"> 查询</el-button>\n" +
            "                        <el-button @click=\"searchForm = {}\"> 清空</el-button>\n" +
            "                        <el-button @click=\"isSearch = false\" v-if=\"isSearch\">收起</el-button>\n" +
            "                        <el-button @click=\"isSearch = true\" v-if=\"!isSearch\">展开</el-button>";


    public static final String VM_SEARCH_TITLE_BUTTON ="\n<el-button @click=\"${button.value}\"> ${button.label}</el-button>";
}
